package com.ghy.dto;

/**
 * @author GaoHeYang
 */

import com.ghy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Schema(name = "秒杀明细修改DTO")
@Data
public class SeckillDetailUpdateDTO implements Serializable, RE {

    @NotNull(message = "主键不能为空")
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "秒杀活动主键")
    private Long fkSeckillId;

    @Schema(description = "课程主键")
    private Long fkCourseId;

    @Schema(description = "秒杀价格")
    private Double skPrice;

    @Schema(description = "秒杀数量")
    private Long skCount;

    @Schema(description = "描述")
    @Pattern(regexp = INFO_RE, message = INFO_RE_MSG)
    private String info;

}